<?php
/**
 * This file is part of webman.
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the MIT-LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author    walkor<walkor@workerman.net>
 * @copyright walkor<walkor@workerman.net>
 * @link      http://www.workerman.net/
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */

use think\Env;


return [
    // 文件更新检测
//    'monitor' => [
//        'handler'     => process\FileMonitor::class,
//        'reloadable'  => false,
//        'constructor' => [
//            // 监控这些目录
//            'monitor_dir' => [
//                app_path(),
//                config_path(),
//                base_path() . '/process',
//                base_path() . '/support'
//            ],
//            // 监控这些后缀的文件
//            'monitor_extenstions' => [
//                'php'
//            ]
//        ]
//    ],
    // 消费对象
//    'redis_consumer' => [
//        'handler' => Webman\RedisQueue\Process\Consumer::class,
//        'count' => 1, // 可以设置多进程
//        'constructor' => [
//            // 消费者类目录
//            'consumer_dir' => app_path() . 'queue/redis'
//        ]
//    ],
    'stomp_consumer' => [
        'handler' => Webman\Stomp\Process\Consumer::class,
        'count' => Env::get("stomp_consumer_count", 2), // 进程数
        'constructor' => [
            // 消费者类目录
            'consumer_dir' => app_path() . 'queue/stomp'
        ]
    ],
    // etcd 对象
    'etcd' => [
        'handler' => teamones\process\Etcd::class,
        'count' => 1 // 可以设置多进程
    ],
    // 其它进程
    /*'websocket'  => [
        'handler'  => process\Websocket::class,
        'listen' => 'websocket://0.0.0.0:8888',
        'count'  => 10,
    ],*/
];
